package com.insta.hibernate.model;

import java.util.HashSet;
import java.util.Set;

public class Eleve {
	private Integer ID;
	private String nom;
	private String prenom;
	private Integer annee;
	private String idEtudiant;
	private Set<Cours> cours= new HashSet<Cours>();
	private Set<String> emailAddresses= new HashSet<String>();
	
	public Eleve(){}
	
	public Eleve(String _nom, String _prenom, Integer _annee, String _idEtudiant){
		this.nom = _nom;
		this.prenom = _prenom;
		this.annee = _annee;
		this.idEtudiant = _idEtudiant;
	}
	
	public Integer getID() {
		return ID;
	}
	public void setID(Integer iD) {
		ID = iD;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getPrenom() {
		return prenom;
	}
	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}
	public Integer getAnnee() {
		return annee;
	}
	public void setAnnee(Integer annee) {
		this.annee = annee;
	}
	public String getIdEtudiant() {
		return idEtudiant;
	}
	public void setIdEtudiant(String idEtudiant) {
		this.idEtudiant = idEtudiant;
	}

	public Set<Cours> getCours() {
		return cours;
	}

	public void setCours(Set<Cours> cours) {
		this.cours = cours;
	}

	public Set<String> getEmailAddresses() {
		return emailAddresses;
	}

	public void setEmailAddresses(Set<String> emailAddresses) {
		this.emailAddresses = emailAddresses;
	}
	
	public void addEmailAddress(String email){
		this.emailAddresses.add(email);
	}

}
